import { http } from '@/utils/http/axios'

export function getListMachineMaintainProject(data = {}) {
  return http.request({
    url: '/admin/base/machineMaintainProject/list',
    method: 'get',
    data,
  })
}

export function pageMachineMaintainProject(data = {}) {
  return http.request({
    url: '/admin/base/machineMaintainProject/page',
    method: 'post',
    data,
  })
}

export function addMachineMaintainProject(data = {}) {
  return http.request({
    url: '/admin/base/machineMaintainProject/add',
    method: 'post',
    data,
  })
}

export function updateMachineMaintainProject(data = {}) {
  return http.request({
    url: '/admin/base/machineMaintainProject/update',
    method: 'post',
    data,
  })
}

export function delMachineMaintainProject(data = {}) {
  return http.request({
    url: '/admin/base/machineMaintainProject/delete',
    method: 'post',
    data,
  })
}

export function infoMachineMaintainProject(data = {}) {
  return http.request({
    url: '/admin/base/machineMaintainProject/info',
    method: 'post',
    data,
  });
}

export function exportMachineMaintainProject(data) {
  return http.request({
    url: '/admin/base/machineMaintainProject/export',
    method: 'post',
    data,
    responseType: 'blob',
  });
};
